using UnityEngine;
using UnityEngine.Serialization;

[CreateAssetMenu(fileName = "New HealthPotion", menuName = "Inventory/BasicItem/HealthPotion(血量道具)")]
public class HealthPotion : BasicItem
{
    public float healthRestore; // 恢复的生命值

    public override void BasicApply(Player player)
    {
        player.stats.health += healthRestore;
        Debug.Log($"玩家恢复了 {healthRestore} 点生命值。");
    }
}